package main

import "fmt"

func main() {
	var p1 map[int]string
	p1 = make(map[int]string) //初始化
	p1[1] = "Tom"
	fmt.Println("p1 :", p1)

	var p2 map[string]string = map[string]string{}
	p2["jack"] = "土豆"
	fmt.Println("p2:", p2)

	var p3 map[string]string = make(map[string]string)
	p3["jack"] = "豆浆"
	fmt.Println("p3:", p3)

	p4 := map[int]string{}
	p4[1] = "豆浆"
	fmt.Println("p4:", p4)

	p5 := make(map[int]string)
	p5[1] = "豆浆"
	fmt.Println("p5:", p5)

	p6 := map[int]string{
		1: "豆浆",
		2: "土豆",
	}
	fmt.Println("p6:", p6)
}
